#!/bin/bash

while :
do
echo -e "\e[31m cpu use ranking\e[0m"
ps aux |sort -k3 -r |head -n 11
echo -e "\e[31m memory use ranking\e[0m"
ps aux |sort -k4 -r |head -n 11
sleep 2
done
